package com.anita.member.adapter.in.web.dto;

import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.Pattern;
import jakarta.validation.constraints.Size;

import java.time.LocalDateTime;

/**
 * @author qiu
 * @date 2025/10/21
 * @description
 */
public record MemberUpdateProfileRequest(
        @Size(max = 20, message = "用户名不能超过20个字符")
        String username,

        @Size(max = 20, message = "会员昵称不能超过20个字符")
        String nickname,

        @Size(max = 200, message = "头像不能超过200个字符")
        String avatar,

        String gender,

        String location,

        @Size(max = 200, message = "个人简介不能超过200个字符")
        String bio,

        LocalDateTime birthday,

        @Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号格式不正确")
        String phone,

        @Email(message = "邮箱格式不正确")
        String email
) {
}
